package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ptuDai
 * @since 2021-09-13
 */
@Component
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> listRoleByUserId(@Param("userId") Integer userId);

}
